obj-m                   := LKMRootkit_Detect.o
KERNEL_HEAD             := $(if $(KVERSION),$(KVERSION),$(shell uname -r))

KERNEL_DIR              := $(if $(wildcard /usr/src/kernels/$(KERNEL_HEAD)),/usr/src/kernels/$(KERNEL_HEAD),/lib/modules/$(KERNEL_HEAD)/build)

MODULE_DIR              := $(shell pwd)


all:
	make -C $(KERNEL_DIR) M=$(MODULE_DIR) modules 
clean:
	rm -f *.ko *.mod *.o *.mod.o *.mod.c .*.cmd *.symvers  modul*

